﻿using System.Collections.ObjectModel;

namespace Game.Trade {
    /// <summary>
    /// 可出售接口
    /// </summary>
    public interface ISellable {
        public int Num { get; set; }
        public int Cost { get; set; }
        public int Revenue { get; set; }
    }

    public interface ITrade {
        public int Money { get; }
    }
    
    public interface IBuyer : ITrade {
        public void Buy(ISellable thing);
    }

    public interface ISeller : ITrade {
        public void Sell(ISellable thing);
        public ReadOnlyCollection<ISellable> SellList { get; }
    }
}